home *** CD-ROM | disk | FTP | other *** search
/ Plug Into a Brand New World / Plug Into a Brand New World Version 1.3.BIN / IO-PP110 / For Linux / Linux_M.txt
Text File  |  2002-01-06  |  8KB  |  247 lines

  1. This installation guide describes the procedures to install NetMos Technology Nm9735CV, Nm9745CV, Nm9835CV, Nm9845CV PCI serial ports in Linux platform.
  2.  
  3. Linux Platform
  4.  
  5. l Operating System        : RedHat, SuSe
  6. l Terminal Emulation AP        : minicom
  7. l Internet Dialer        : Kppp
  8.  
  9.  
  10. Find the available serial ports
  11.  
  12. Since Linux only support 4 serial ports (ttyS0, ttyS1, ttyS2, ttyS3) under the default condition. Most likely, ttyS0 & ttyS1 are supported by mother board's built-in serial controllers and ttyS2 & ttyS3 are free for additional I/O card.
  13.  
  14. Serial ports could be checked by the following commands.
  15.  
  16. setserial  /dev/ttyS0 -a         (COM-1)
  17. setserial  /dev/ttyS1 -a         (COM-2)
  18. setserial  /dev/ttyS2 -a         (COM-3)
  19. setserial  /dev/ttyS3 -a         (COM-4)
  20.  
  21. If COM-1 is used by mouse, the response is similar to
  22.  
  23. /dev/ttyS0 : Device or resource busy    
  24.  
  25. If the COM-1 does not attach any device, the response is similar to 
  26.  
  27. /dev/ttyS0, Line 0,     UART: 16550A, Port: 0x3f8, irq: 4
  28.                      Baud_base: 115200, clos_delay: 50, divisor: 0
  29.                      closing_wait: 3000, closing_wait2: infinite
  30.                      Flags: spd_normal skip_test
  31.  
  32. In case ttyS2 (COM-3) is free, the response for command  setserial /dev/ttyS2 -a is shown below.
  33.  
  34. /dev/ttyS2, Line 2,     UART: unknown, Port: 0x3e8, irq: 4
  35.                          Baud_base: 115200, clos_delay: 50, divisor: 0
  36.                          closing_wait: 3000, closing_wait2: infinite
  37.                          Flags: spd_normal skip_test
  38.  
  39. Find the PCI card resource ( I/O port address & IRQ) for the serial ports
  40.  
  41. Enter the command  more  /proc/pci
  42.  
  43. The response is similar to the following
  44.       
  45.             Bus 0, Device 11, function 0:
  46.             Serial controller : Unknown vendor Unknown device (rev 01).
  47.             Vendor id=9710, Device id=9735
  48.                     Device id=9745
  49.                     Device id=9820
  50.                     Device id=9825
  51.                     Device id=9835
  52.                     Device id=9845
  53.  
  54.             Medium devsel. Fast back-to-back capable. IRQ 11
  55.  
  56.             Board with Nm9735CV part
  57.             I/O at 0xc000 [0xc001]    serial port 1
  58.                    0xc008 [0xc009]    serial port 2
  59.  
  60.             Board with Nm9745CV part
  61.             I/O at 0xc000 [0xc001]    serial port 1
  62.                    0xc008 [0xc009]    serial port 2
  63.                    0xc010 [0xc011]    device 1
  64.                    0xc018 [0xc019]    device 2
  65.                    0xc020 [0xc021]    device 3
  66.                    0xc028 [0xc029]    device 4
  67.  
  68.             Board with Nm9820CV part
  69.             I/O at 0xc000 [0xc001]    serial port 1
  70.             I/O at 0xc400 [0xc401]    not used
  71.             I/O at 0xc800 [0xc801]    not used
  72.             I/O at 0xd000 [0xd001]    not used
  73.             I/O at 0xd400 [0xd401]    not used
  74.             I/O at 0xd800 [0xd801]    not used
  75.  
  76.             Board with Nm9825CV part
  77.             I/O at 0xc000 [0xc001]    serial port 1
  78.  
  79.             Board with Nm9835CV part
  80.             I/O at 0xc000 [0xc001]    serial port 1
  81.             I/O at 0xc400 [0xc401]    serial port 2
  82.             I/O at 0xc800 [0xc801]    not used
  83.             I/O at 0xd000 [0xd001]    not used
  84.             I/O at 0xd400 [0xd401]    not used
  85.             I/O at 0xd800 [0xd801]    not used
  86.  
  87.             Board with Nm9845CV part
  88.             I/O at 0xc000 [0xc001]    serial port 1
  89.             I/O at 0xc400 [0xc401]    serial port 2
  90.             I/O at 0xc800 [0xc801]    device 1
  91.             I/O at 0xd000 [0xd001]    device 2
  92.             I/O at 0xd400 [0xd401]    device 3
  93.             I/O at 0xd800 [0xd801]    device 4
  94.  
  95.             Board with Nm9755CV part
  96.             I/O at 0xc000 [0xc001]    not used
  97.             I/O at 0xc400 [0xc401]    not used
  98.             I/O at 0xc800 [0xc801]    device 1
  99.             I/O at 0xd000 [0xd001]    device 2
  100.             I/O at 0xd400 [0xd401]    device 3
  101.             I/O at 0xd800 [0xd801]    device 4
  102.  
  103.  
  104. From the  /proc/pci file, it is possible to find the PCI card's I/O port address and IRQ. Especially, the NetMos parts always shows
  105.  
  106.             Vendor id=9710, Device id=9735
  107.                     Device id=9745
  108.                     Device id=9820
  109.                     Device id=9825
  110.                     Device id=9835
  111.                     Device id=9845
  112.     
  113. Configure the parameters for ttyS2 or ttyS3
  114.  
  115. Enter (if ttyS2 or ttyS3 are free)
  116.  
  117.            setserial  /dev/ttyS2 port 0xc000 UART 16550A
  118.                        irq 11 Baud_base 115200
  119.  
  120.            setserial  /dev/ttyS3 port 0xc008 UART 16550A
  121.                        irq 11 Baud_base 115200
  122.  
  123. Check the setting for ttyS2 or ttyS3
  124.  
  125. Type setserial  /dev/ttyS2 -a
  126.  
  127.                   /dev/ttyS2, Line 2, UART: 16550A, Port: 0xc000, irq: 11
  128.                      Baud_base: 115200, clos_delay: 50, divisor: 0
  129.                      closing_wait: 3000, closing_wait2: infinite
  130.                      Flags: spd_normal skip_test
  131.  
  132.  
  133. The ttyS2 or ttyS3 are ready for application
  134.  
  135.  
  136. Installation Guide for PCI Parallel Ports 
  137.  
  138. This installation guide describes the procedure to install the Nm9705,Nm9735CV, Nm9805CV, Nm9715CV, Nm9835CV, Nm9755CV PCI parallel ports in Linux platform.
  139.  
  140. Linux kernel provide a 'parport' code to support parallel port (/dev/lp0,  /dev/lp1, /dev/lp2). This code provides the ability to share one port between multiple devices. And it is loadable when kernel is running.
  141.  
  142. The 'parport' code is split into two parts : generic (which deals with port sharing) and architecture-dependent eg. X86, SPARC. (which deals with actually using the port). Thus, please take the following steps to install 'parport' module!
  143.  
  144. Check the on-board parallel port's hardware resources
  145.  
  146. Most likely each motherboard has a built-in parallel port. And its hardware resources are settable with BIOS utility.
  147.  
  148. Enter the command  more  /proc/pci
  149.  
  150. The response is similar to the following
  151.       
  152.             Bus 0, Device 11, function 0:
  153.             Serial controller : Unknown vendor Unknown device (rev 01).
  154.             Vendor id=9710, Device id=9705
  155.                     Device id=9735
  156.                     Device id=9805
  157.                     Device id=9815
  158.                     Device id=9835
  159.                     Device id=9855
  160.  
  161.             Medium devsel. Fast back-to-back capable. IRQ 11
  162.             
  163.             Board with Nm9705CV part
  164.             I/O at 0xc000 [0xc001]    printer port
  165.                    0xc008 [0xc009]    ECP/EPP config registers
  166.  
  167.             Board with Nm9735CV part
  168.             I/O at 0xc000 [0xc001]    not used
  169.                    0xc008 [0xc009]    not used
  170.                    0xc010 [0xc011]    printer port
  171.                    0xc018 [0xc019]    ECP/EPP config registers
  172.             
  173.             Board with Nm9805CV part
  174.             I/O at 0xc000 [0xc001]    printer port
  175.             I/O at 0xc400 [0xc401]    ECP/EPP config registers
  176.             I/O at 0xc800 [0xc801]    not used
  177.             I/O at 0xd000 [0xd001]    not used
  178.             I/O at 0xd400 [0xd401]    not used
  179.             I/O at 0xd800 [0xd801]    not used
  180.  
  181.             Board with Nm9715CV part
  182.             I/O at 0xc000 [0xc001]    printer port 1
  183.             I/O at 0xc400 [0xc401]    ECP/EPP config registers 1
  184.             I/O at 0xc800 [0xc801]    printer port 2
  185.             I/O at 0xd000 [0xd001]    ECP/EPP config registers 2
  186.             I/O at 0xd400 [0xd401]    not used
  187.             I/O at 0xd800 [0xd801]    not used
  188.  
  189.             Board with Nm9835CV part
  190.             I/O at 0xc000 [0xc001]    not used
  191.             I/O at 0xc400 [0xc401]    not used
  192.             I/O at 0xc800 [0xc801]    printer port
  193.             I/O at 0xd000 [0xd001]    ECP/EPP config registers
  194.             I/O at 0xd400 [0xd401]    not used
  195.             I/O at 0xd800 [0xd801]    not used
  196.  
  197.             Board with Nm9755CV part
  198.             I/O at 0xc000 [0xc001]    printer port 1
  199.             I/O at 0xc400 [0xc401]    ECP/EPP config registers 1
  200.             I/O at 0xc800 [0xc801]    printer port 2
  201.             I/O at 0xd000 [0xd001]    ECP/EPP config registers 2
  202.             I/O at 0xd400 [0xd401]    not used
  203.             I/O at 0xd800 [0xd801]    not used
  204.  
  205.  
  206.  
  207.  
  208. Install 'parport' module
  209.  
  210. To load the generic 'parport' code
  211.  
  212. Type             insmod parport.o
  213.          
  214. To load the architecture-dependent code to tell 'parport' code
  215.  
  216.             insmod parport_pc.o  io=0x378,0xc000,0xc800
  217.             irq=7, irq=11, none
  218.  
  219.             or
  220.  
  221.             insmod parport_pc.o  io=0x378,0xc000,0xc800
  222.             irq=7,11,none    
  223.  
  224. You have three PC-style ports, one at 0x378 with IRQ 7, one at
  225. 0xc000 with  IRQ11, one at 0xc800 with no IRQ.
  226.  
  227.  
  228. Check the attached printer device [optional]
  229.  
  230. Once the architecture-dependent part of the paraport code is loaded into the kernel. You could enter the following command 
  231.  
  232.              insmod parport_probe.o 
  233.  
  234. To check any attached devices and log a message similar to
  235.  
  236.             parport0: Printer, epson
  237.  
  238.  
  239. Then             /dev/lp0, /dev/lp1 and /dev/lp2 are ready for service
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.